﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="confirm.ascx.cs" Inherits="Views_order_confirm" %>

  <div id="jacketboxc">
            <div id="jacketbox">
                <div class="jacket_header">
                <div class="heading left">
                <h5>Confirm</h5>
                </div>
                <div class="left">  </div>
                <div class="clearB"></div>
                </div>
        <div style="font-weight:bold;font-size:1.2em;margin-bottom:5px">Mặt Hàng Cần Mua</div>
        <div  style="border:1px solid #cecece;padding:10px;margin-bottom:10px;" >
            <asp:DataList ID="confirmCart" runat="server" width="100%">
            <HeaderTemplate>
                <table class="cart" style="width:100%;">
                <tr>
                  <th align="center">Ảnh</th>
                  <th align="left">Tên</th>
                  <th align="right">Số lượng</th>
                  <th align="right">Giá</th>
                  <th align="right">Tổng</th>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                 <tr class="even">                  
                  <td align="center"><asp:HyperLink ID="HyperLink1"   NavigateUrl='~//product.aspx?id=<%# Eval("Product_id") %>' runat="Server" ><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("image") %>' Width="40px" Height="40px" AlternateText='<%# Eval("product_name") %>' /></asp:HyperLink></td>
                  <td align="left" valign="top"><a href=""><%# Eval("product_name") %></a></td>
                  <td align="right" valign="top"><%# Eval("quantity") %></td>
                  <td align="right" valign="top"><%# Eval("price") %></td>
                  <td align="right" valign="top"><%# Eval( "total") %></td>             
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr class="even">
                    <div style="width: 100%; display: inline-block;">
                        <table style="float: right; display: inline-block;">
                            <tr>
                                <td align="right">
                                    <b>Thành tiền:</b></td>
                                <td align="right"><%=cartBus.carts.subtotal() %></asp:Label></td>
                            </tr>
                        </table>
                        <br />
                    </div>                
                    <td align="center">
                    </td>
                    <td align="center">
                    </td>
                </tr>
            </FooterTemplate>
            </asp:DataList>
        </div>
        <div style="font-weight:bold;font-size:1.2em;margin-bottom:5px">Ý kiến</div>
        <div  style="border:1px solid #cecece;padding:10px;margin-bottom:10px;" >
            <div style="margin-bottom:5px">Chủ đề:</div>
            <asp:TextBox  width="100%" ID="subjectComment" runat="server" Text=""></asp:TextBox>
            <div style="margin-bottom:5px">Nội dung:</div>
            <asp:TextBox TextMode="MultiLine" width="100%" Height="100px" ID="comment" runat="server"></asp:TextBox>
            
        </div>
        <div  style="border:1px solid #cecece;padding:10px;margin-bottom:10px;text-align:center;" >
               
    	        <asp:Button runat="Server" Text="Quay Lại" ID="back" OnClick="click_Back" CssClass="button" />
                <td><asp:Button runat="Server" Text="Tiếp tục" ID="ok" OnClick="click_Next" CssClass="button" />               
                
        </div>
        <div class="clearB"></div>
        </div>
        </div>
        </div>
